def print_file(*file_names):
	for file_name in file_names:
		lines = []
		try:
			with open(file_name) as file:
				for line in file.readlines():
					lines.append(line.strip())
		except FileNotFoundError:
			# 文件不存在时静默
			pass
			# print(f"{file_name} 不存在")
		else:
			print(f"文件名：{file_name}")
			for line in lines:
				print(f"\t - {line.strip()}")
print_file("cats.txt", 'dogss.txt')